import matplotlib.pyplot as plt

kfx = plt.imread('./kfx.png')
# 上下颠倒
kfx1 = kfx[::-1]
# 左右颠倒
kfx2 = kfx[:, ::-1]
# 颜色颠倒
kfx3 = kfx[:, :, ::-1]
# 降低精度
kfx4 = kfx[::4, ::4]
# 打马赛克
kfx5 = kfx.copy()
kfx5[50:100, 50:100, :] = 0
plt.imshow(kfx)
plt.show()
plt.imshow(kfx1)
plt.show()
plt.imshow(kfx2)
plt.show()
plt.imshow(kfx3)
plt.show()
plt.imshow(kfx4)
plt.show()
plt.imshow(kfx5)
plt.show()
